import request from '@/utils/request'

// 增
export function saveReport(data) {
  return request({
    url: '/report',
    method: 'put',
    data
  })
}

// 删
export function deleteReport(data) {
  return request({
    url: '/report',
    method: 'delete',
    data
  })
}

// 改
export function updateReport(data) {
  return request({
    url: '/report',
    method: 'post',
    data
  })
}

// 查
export function getReport(id) {
  return request({
    url: `/report/${id}`,
    method: 'get'
  })
}

// 列表
export function getReportList(data) {
  return request({
    url: '/reportList',
    method: 'post',
    data
  })
}

// vo列表
export function getReportVoList(data) {
  return request({
    url: '/reportVoList',
    method: 'post',
    data
  })
}
